package com.gxa.mapper;

import com.gxa.common.vo.AdvanceSearchProviderCondition;
import com.gxa.common.vo.Provider;
import org.apache.ibatis.annotations.Param;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper
public interface ProviderManagementMapper {
    /**
     * 分页查询供应商
     * @return
     */
    List findProviderList();

    int transProvider(@Param(value = "providerId") Integer providerId, @Param(value = "userId") Integer userId);

    int addProvider(Provider provider);

    int addProviderExtra(Provider provider);

    int deleteProviderById(Integer id);

    List advanceSearchProvider(AdvanceSearchProviderCondition advanceSearchProviderCondition);

    int updateProvider(Provider provider);

    int updateProviderExtra(Provider provider);

    List selectProviderByQuery(String findProviderCondition);

}
